package main

import (
	"fmt"
	"os"
)

func main(){
	f,err := os.Open("/Users/lee/Project/goproject/Test.txt")
	if err != nil {
		fmt.Println("打开文件失败：",err)
		return
	}
	fmt.Println("打开文件成功：",f)

	err2 := f.Close()
	if err != nil {
		fmt.Println("关闭文件失败：",err2)
		return
	}
	fmt.Println("关闭文件成功")
}